﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Country.aspx.cs"
    Inherits="RCREEE.Web.GeorgeCountry" Culture="auto" meta:resourcekey="PageResource1"
    UICulture="auto" EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <div id="header">
        <div id="section">
            <table width="100%">
                <tr>
                    <td width="20%" align="center" valign="middle">
                        <img src="Images/LogoRCREEE_Transparent.png" width="200px" />
                    </td>
                    <td width="60%" align="center" valign="middle">
                        <img src="Images/areeed-ba-txtr.png" width="600px" />
                    </td>
                    <td width="25%" align="center" valign="top">
                        <img src="Images/las-logo.png" width="85px" />
                    </td>
                </tr>
            </table>
        </div>
        <ul>
            <li><a href="Default.aspx">Home</a></li>
            <li><a href="Index.aspx">Index</a></li>
            <li><a href="Topics.aspx">Topics</a></li>
            <li class="current"><a href="CountrySelector.aspx">Countries</a></li>
            <li><a href="Aboutus.aspx">About Us</a></li>
            <li><a href="contactus.aspx">Contact us</a></li>
        </ul>
    </div>
    <style type="text/css">
        .style7
        {
            width: 213px;
        }
        .style8
        {
            width: 77px;
        }
        .style11
        {
            width: 214px;
        }
        .style13
        {
            width: 291px;
        }
        .style14
        {
            width: 284px;
        }
        .style15
        {
            width: 216px;
        }
        .style16
        {
            width: 206px;
        }
        .style17
        {
            width: 209px;
        }
        .style19
        {
            width: 424px;
        }
        .style20
        {
            width: 416px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        $().ready(function () {
            $('#dialogContent').dialog({
                autoOpen: false,
                modal: true,
                bgiframe: true,
                title: "Confirm Delete",
                width: 300,
                height: 200
            });
        });

        function openDeletePopup(uniqueID) {
            $('#dialogContent').dialog('option', 'buttons',
                {
                    "OK": function () { __doPostBack(uniqueID, ''); $(this).dialog("close"); },
                    "Cancel": function () { $(this).dialog("close"); }
                });

            $('#dialogContent').dialog('open');

            return false;
        }


    </script>
    <div>
        <asp:ScriptManager ID="scriptMan" runat="server">
        </asp:ScriptManager>
        <div id="dialogContent" style="font-size: small">
            <p>
                Are you sure you want to delete?</p>
        </div>
        <asp:UpdateProgress ID="Up1" runat="Server" AssociatedUpdatePanelID="updatePanel1">
            <ProgressTemplate>
                <div class="progressBackgroundFilter">
                </div>
                <div class="processMessage">
                    Loading...<br />
                    <br />
                    <img alt="Loading..." src="Images/Loading.gif" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <script type="text/javascript">
                    function HandelExport(id) {
                        var hdnId = document.getElementById('<%=hdnExportIndex.ClientID %>');
                        hdnId.value = id;
                        $get('<%=HiddenButton.ClientID %>').click();
                        return false;
                    }
                    function HandelExportProjects(id) {
                        var hdnId = document.getElementById('<%=hdnExportIndex.ClientID %>');
                        hdnId.value = id;
                        $get('<%=HiddenButton_ExportProject.ClientID %>').click();
                        return false;
                    }
                </script>
                <asp:HiddenField runat="server" ID="hdnExportIndex" />
                <asp:Button ID="HiddenButton" runat="server" Style="display: none" Text="HiddenButton"
                    OnClick="btnExportContacts_Click" />
                <asp:Button ID="HiddenButton_ExportProject" runat="server" Style="display: none"
                    Text="HiddenButton ExportContact" OnClick="btnExportProjects_Click" />
                <div>
                    <table width="50%">
                        <tr>
                            <td class="style8">
                                <asp:Label ID="lblCountry" runat="server" Text="Country">
                                </asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCountries" runat="server" DataSourceID="odsCountriesDDL"
                                    DataTextField="CountryName" DataValueField="CountryId" OnSelectedIndexChanged="ddlCountries_SelectedIndexChanged"
                                    Style="height: 22px; margin-left: 0px;" Width="100%" AutoPostBack="True" meta:resourcekey="ddlCountriesResource1">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </div>
                <asp:ObjectDataSource ID="odsCountriesDDL" runat="server" SelectMethod="GetAllCountries"
                    TypeName="RCREEE.Library.DataManager">
                    <SelectParameters>
                        <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                        <asp:Parameter Name="FirstItem" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:FormView ID="fvCountryDetails" runat="server" DataSourceID="odsCountries" EnableModelValidation="True"
                    Width="100%" CellPadding="4" ForeColor="#333333" OnDataBound="fvCountryDetails_DataBound"
                    DataKeyNames="CountryId" OnItemUpdating="fvCountryDetails_ItemUpdating" OnItemInserting="fvCountryDetails_ItemInserting"
                    meta:resourcekey="fvCountryDetailsResource1" OnItemInserted="fvCountryDetails_ItemInserted"
                    OnItemDeleted="fvCountryDetails_ItemDeleted" OnItemDeleting="fvCountryDetails_ItemDeleting">
                    <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                    <ItemTemplate>
                        <asp:Label ID="lblCountryId" runat="server" Visible="False" Text='<%# Eval("CountryId") %>'
                            meta:resourcekey="lblCountryIdResource1"></asp:Label>
                        <br />
                        <asp:Panel ID="pnlDetailsEnglish" runat="server" GroupingText="Details" meta:resourcekey="pnlDetailsEnglishResource1"
                            Width="100%">
                            <table width="100%">
                                <tr>
                                    <td colspan="2" align="center">
                                        <img src="Images/Flags/<%# Eval("FlagImagePath") %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblEnglishName_Item" runat="server" Text="English Name:" meta:resourcekey="lblEnglishName_ItemResource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblEnglishName" runat="server" Text='<%# Bind("EnglishName") %>' meta:resourcekey="lblEnglishNameResource1"></asp:Label>
                                    </td>
                                    <tr>
                                        <td colspan='2'>
                                            <hr />
                                        </td>
                                    </tr>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblName_Item" runat="server" Text="Name:" meta:resourcekey="lblName_ItemResource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblName" runat="server" Text='<%# Bind("EnglishCountryName") %>' meta:resourcekey="lblNameResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label52" runat="server" Text="Capital: " meta:resourcekey="lblCapitalNameLabel_English" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label53" runat="server" Text='<%# Bind("EnglishCapital") %>' meta:resourcekey="lblNameResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label54" runat="server" Text="Area: " meta:resourcekey="lblAreaLabel_English" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label55" runat="server" Text='<%# Bind("EnglishArea") %>' meta:resourcekey="lblNameResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label15" runat="server" Text="Renewable Energy Contribution Rate:"
                                            meta:resourcekey="Label15Resource3" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblREConRate" runat="server" Text='<%# Bind("EnglishRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="lblREConRateResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label16" runat="server" Text="Renewable Energy Contribution Rate Comment:"
                                            meta:resourcekey="Label16Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblREConRateComment" runat="server" Text='<%# Bind("EnglishRenewableEnergyContributionRateComment") %>'
                                            meta:resourcekey="lblREConRateCommentResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label17" runat="server" Text="Energy Efficiency Contribution Rate:"
                                            meta:resourcekey="Label17Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblEEConRate" runat="server" Text='<%# Bind("EnglishEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="lblEEConRateResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label18" runat="server" Text="Energy Efficiency Contribution Rate Comment:"
                                            meta:resourcekey="Label18Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblEEConRateComment" runat="server" Text='<%# Bind("EnglishEnergyEfficiencyContributionRateComment") %>'
                                            meta:resourcekey="lblEEConRateCommentResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label19" runat="server" Text="Currency:" meta:resourcekey="Label19Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="lblCurrency" runat="server" Text='<%# Bind("EnglishCurrency") %>'
                                            meta:resourcekey="lblCurrencyResource1"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel ID="pnlDetailsFrench" runat="server" GroupingText="Détails" meta:resourcekey="pnlDetailsFrenchResource1"
                            Width="100%">
                            <table width="100%">
                                <tr>
                                    <td colspan="2" align="center">
                                        <img src="Images/Flags/<%# Eval("FlagImagePath") %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label20" runat="server" Text="Nom anglais:" meta:resourcekey="Label20Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("EnglishName") %>' meta:resourcekey="Label1Resource1"></asp:Label>
                                    </td>
                                    <tr>
                                        <td colspan='2'>
                                            <hr />
                                        </td>
                                    </tr>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label21" runat="server" Text="Nom:" meta:resourcekey="Label21Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("FrenchCountryName") %>' meta:resourcekey="Label2Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label56" runat="server" Text="Capital: " meta:resourcekey="lblCapitalNameLabel_French" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label57" runat="server" Text='<%# Bind("FrenchCapital") %>' meta:resourcekey="lblNameResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label58" runat="server" Text="Area: " meta:resourcekey="lblAreaLabel_French" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label59" runat="server" Text='<%# Bind("FrenchArea") %>' meta:resourcekey="lblNameResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label22" runat="server" Text="Taux de cotisation de l'énergie renouvelable:"
                                            meta:resourcekey="Label22Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("FrenchRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="Label3Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label23" runat="server" Text="Noter ce commentaire renouvelable de l'énergie de la contribution:"
                                            meta:resourcekey="Label23Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("FrenchRenewableEnergyContributionRateComment") %>'
                                            meta:resourcekey="Label4Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label24" runat="server" Text="Taux de cotisation de l'énergie renouvelable:"
                                            meta:resourcekey="Label24Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("FrenchEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="Label5Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label25" runat="server" Text="L'efficacité énergétique des taux de cotisation Commentaire:"
                                            meta:resourcekey="Label25Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("FrenchEnergyEfficiencyContributionRateComment") %>'
                                            meta:resourcekey="Label6Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label26" runat="server" Text="monnaie:" meta:resourcekey="Label26Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("FrenchCurrency") %>' meta:resourcekey="Label7Resource1"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Panel ID="pnlDetailsArabic" runat="server" GroupingText="التفاصيل" Direction="RightToLeft"
                            meta:resourcekey="pnlDetailsArabicResource1" Width="100%">
                            <table dir="rtl" width="100%">
                                <tr>
                                    <td colspan="2" align="center">
                                        <img src="Images/Flags/<%# Eval("FlagImagePath") %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label27" runat="server" Text="الاسم بالانجليزية:" meta:resourcekey="Label27Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("EnglishName") %>' meta:resourcekey="Label8Resource1"></asp:Label>
                                    </td>
                                    <tr>
                                        <td colspan='2'>
                                            <hr />
                                        </td>
                                    </tr>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label28" runat="server" Text="الاسم:" meta:resourcekey="Label28Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label9" runat="server" Text='<%# Bind("ArabicCountryName") %>' meta:resourcekey="Label9Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label60" runat="server" Text="Capital: " meta:resourcekey="lblCapitalNameLabel_Arabic" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label61" runat="server" Text='<%# Bind("ArabicCapital") %>' meta:resourcekey="lblNameResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label62" runat="server" Text="Area: " meta:resourcekey="lblAreaLabel_Arabic" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label63" runat="server" Text='<%# Bind("ArabicArea") %>' meta:resourcekey="lblNameResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label29" runat="server" Text="معدل المساهمة في الطاقة المتجددة:" meta:resourcekey="Label29Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label10" runat="server" Text='<%# Bind("ArabicRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="Label10Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label30" runat="server" Text="ملاحظات على معدل المساهمة في الطاقة المتجددة:"
                                            meta:resourcekey="Label30Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label11" runat="server" Text='<%# Bind("ArabicRenewableEnergyContributionRateComment") %>'
                                            meta:resourcekey="Label11Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label31" runat="server" Text="معدل المساهمة في كفاءة الطاقة:" meta:resourcekey="Label31Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label12" runat="server" Text='<%# Bind("ArabicEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="Label12Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label32" runat="server" Text="ملاحظات على معدل المساهمة في كفاءة الطاقة:"
                                            meta:resourcekey="Label32Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label13" runat="server" Text='<%# Bind("ArabicEnergyEfficiencyContributionRateComment") %>'
                                            meta:resourcekey="Label13Resource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label33" runat="server" Text="العملة:" meta:resourcekey="Label33Resource1" />
                                    </td>
                                    <td>
                                        <asp:Label ID="Label14" runat="server" Text='<%# Bind("ArabicCurrency") %>' meta:resourcekey="Label14Resource1"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:Button ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
                            Text="Edit" meta:resourcekey="EditButtonResource1"></asp:Button>
                        <%--<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="Delete" meta:resourcekey="DeleteButtonResource1"></asp:LinkButton>--%>
                        <asp:Button ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
                            Text="New" meta:resourcekey="NewButtonResource1"></asp:Button>
                        <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" OnClientClick="javascript:return openDeletePopup(this.name);"
                            meta:resourcekey="DeleteButtonResource1"></asp:Button>
                        <br />
                        <br />
                        <asp:Panel ID="pnlContacts" runat="server" GroupingText="Entities" meta:resourcekey="pnlContactsResource1">
                            <asp:Repeater ID="RepeaterContact" runat="server" DataSourceID="odsContactEntities"
                                OnItemDataBound="RepeaterContact_ItemDataBound">
                                <ItemTemplate>
                                    <asp:Label ID="lblContactEntityId" runat="server" Text='<%# Eval("ID") %>' Visible="False"
                                        meta:resourcekey="lblContactEntityIdResource1"></asp:Label>
                                    <a href='<%# "Contact.aspx?E=" + Eval("ID") + "&C=" + ddlCountries.SelectedValue %>'
                                        meta:resourcekey="lblContactEntityNameResource1" target="_blank">
                                        <%# Eval("Name") %>
                                    </a>
                                    <asp:GridView ID="gvMaster" runat="server" DataSourceID="osdContacts" EnableModelValidation="True"
                                        CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="style1" DataKeyNames="ContactId"
                                        AutoGenerateColumns="False" EmptyDataText="No data available for this language!"
                                        meta:resourcekey="gvMasterResource1" Width="100%">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource1">
                                                <ItemTemplate>
                                                    <a href='<%# "Contact.aspx?E=" + Eval("EntityId")  + "&R=" + Eval("ContactId") %>'
                                                        target="_blank" meta:resourcekey="lnknameResource1">
                                                        <%# Eval("ContactName") %>
                                                    </a>
                                                </ItemTemplate>
                                                <HeaderStyle Width="300px" />
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="ContactId" HeaderText="Entity Id" Visible="False" meta:resourcekey="BoundFieldResource1">
                                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="FieldName" HeaderText="Field" meta:resourcekey="BoundFieldResource2">
                                                <HeaderStyle Width="200px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" meta:resourcekey="BoundFieldResource3">
                                                <HeaderStyle Width="200px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="FaxNumber" HeaderText="Fax Number" meta:resourcekey="BoundFieldResource4">
                                                <HeaderStyle Width="200px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Email" HeaderText="Email" meta:resourcekey="BoundFieldResource5">
                                                <HeaderStyle Width="250px" />
                                            </asp:BoundField>
                                        </Columns>
                                        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                                    </asp:GridView>
                                    <asp:Button ID="btnExportContacts" runat="server" Text="To Excel" />
                                    <%--<asp:Label ID="qweqwe" runat="server" Text='<%=  %>' />--%>
                                    <asp:ObjectDataSource ID="osdContacts" runat="server" SelectMethod="GetAllMasterContacts"
                                        TypeName="RCREEE.Library.Entities.Contact" DataObjectTypeName="RCREEE.Library.Entities.Contact"
                                        InsertMethod="InsertContact" UpdateMethod="UpdateContact">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="lblContactEntityId" DefaultValue="" Name="entityId"
                                                PropertyName="Text" Type="Int32" />
                                            <asp:SessionParameter DefaultValue="1033" Name="languageCode" SessionField="LanguageCode"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="ddlCountries" Name="countryId" PropertyName="SelectedValue"
                                                Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <br />
                                </ItemTemplate>
                                <SeparatorTemplate>
                                    <hr />
                                </SeparatorTemplate>
                            </asp:Repeater>
                            <asp:ObjectDataSource ID="odsContactEntities" runat="server" SelectMethod="GetEntitiesByEntityTypeId"
                                TypeName="RCREEE.Library.DataManager">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="121" Name="EntityTypeId" Type="Int32" />
                                    <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </asp:Panel>
                        <br />
                        <asp:Panel ID="pnlProjects" runat="server" GroupingText="Projects" meta:resourcekey="pnlProjectsResource1"
                            Width="100%">
                            <asp:Repeater ID="RepeaterProjects" runat="server" DataSourceID="odsProjectEntities"
                                OnItemDataBound="RepeaterProjects_ItemDataBound">
                                <ItemTemplate>
                                    <asp:Label ID="lblProjectEntityId" runat="server" Text='<%# Eval("ID") %>' Visible="False"
                                        meta:resourcekey="lblProjectEntityIdResource1"></asp:Label>
                                    <%--<asp:Label ID="lblProjectEntityName" runat="server" Text='<%# Eval("Name") %>' meta:resourcekey="lblProjectEntityNameResource1"></asp:Label>--%>
                                    <a href='<%# "Project.aspx?E=" + Eval("ID") + "&C=" + ddlCountries.SelectedValue %>'
                                        meta:resourcekey="lblContactEntityNameResource1" target="_blank">
                                        <%# Eval("Name") %>
                                    </a>
                                    <asp:GridView ID="gvProjects" runat="server" DataKeyNames="ProjectId" DataSourceID="odsProjects"
                                        AutoGenerateColumns="False" CellPadding="4" EnableModelValidation="True" ForeColor="#333333"
                                        GridLines="None" AllowPaging="True" PageSize="5" EmptyDataText="No data available for this language!"
                                        meta:resourcekey="gvProjectsResource1" Width="100%">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:BoundField DataField="ProjectId" HeaderText="ProjectId" Visible="False" meta:resourcekey="BoundFieldResource6" />
                                            <%--<asp:ButtonField CommandName="Select" DataTextField="Name" HeaderText="Project Name"
                                                Text="Project Name" meta:resourcekey="ButtonFieldResource1" >
                                                <ItemStyle ForeColor="Blue" />
                                            </asp:ButtonField>--%>
                                            <asp:TemplateField HeaderText="Project Name" meta:resourcekey="TemplateFieldResource1">
                                                <ItemTemplate>
                                                    <a href='<%# "Project.aspx?E=" + Eval("EntityId")  + "&R=" + Eval("ProjectId") %>'
                                                        meta:resourcekey="lnknameResource1" target="_blank">
                                                        <%# Eval("Name") %>
                                                    </a>
                                                </ItemTemplate>
                                                <HeaderStyle Width="300px" />
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="ProjectType" HeaderText="Project Type" meta:resourcekey="BoundFieldResource7" />
                                            <asp:BoundField HeaderText="Place" DataField="Place" meta:resourcekey="BoundFieldResource8" />
                                            <asp:BoundField HeaderText="Operation Year" DataField="OperationYear" meta:resourcekey="BoundFieldResource9" />
                                            <asp:BoundField DataField="ExecutingAgency" HeaderText="Executing Agency" meta:resourcekey="BoundFieldResource10" />
                                        </Columns>
                                        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                                    </asp:GridView>
                                    <asp:Button ID="btnExportProjects" runat="server" Text="To Excel" />
                                    <asp:ObjectDataSource ID="odsProjects" runat="server" SelectMethod="SelectAllprojectByCountry"
                                        TypeName="RCREEE.Library.Entities.Project" DataObjectTypeName="RCREEE.Library.Entities.Project"
                                        DeleteMethod="Deleteproject" InsertMethod="InsertProject" UpdateMethod="UpdateProject">
                                        <SelectParameters>
                                            <asp:SessionParameter DefaultValue="" Name="LanguageCode" SessionField="LanguageCode"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="ddlCountries" Name="CountryId" PropertyName="SelectedValue"
                                                Type="Int32" DefaultValue="0" />
                                            <asp:ControlParameter ControlID="lblProjectEntityId" DefaultValue="" Name="EntityId"
                                                PropertyName="Text" Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <br />
                                </ItemTemplate>
                            </asp:Repeater>
                            <asp:ObjectDataSource ID="odsProjectEntities" runat="server" SelectMethod="GetEntitiesByEntityTypeId"
                                TypeName="RCREEE.Library.DataManager">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="122" Name="EntityTypeId" Type="Int32" />
                                    <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </asp:Panel>
                        <br />
                        <asp:Panel ID="pnlMultiValueItem" runat="server" GroupingText="General Data" meta:resourcekey="pnlMultiValueItemResource1"
                            Width="100%">
                            <asp:Repeater ID="RepeaterMultiItemValues" runat="server" DataSourceID="odsMultiItemValuesEntities">
                                <ItemTemplate>
                                    <asp:Label ID="lblMultiValueItemEntityId" runat="server" Text='<%# Eval("ID") %>'
                                        Visible="False" meta:resourcekey="lblMultiValueItemEntityIdResource1"></asp:Label>
                                    <%--<asp:Label ID="lblMultiValueItemEntityName" runat="server" Text='<%# Eval("Name") %>'
                                        meta:resourcekey="lblMultiValueItemEntityNameResource1"></asp:Label>--%>
                                    <a href='<%# "ItemsList.aspx?E=" + Eval("ID") + "&CID=" + ddlCountries.SelectedValue %>'
                                        meta:resourcekey="lblContactEntityNameResource1" target="_blank">
                                        <%# Eval("Name") %>
                                    </a>
                                    <asp:ListView ID="lvMultiViewItemValues" runat="server" DataSourceID="odsMultiValueItems"
                                        EmptyDataText="No data Available for this language">
                                        <LayoutTemplate>
                                            <ul>
                                                <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                                            </ul>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <li>
                                                <asp:Label ID="lblValue" Text='<%# Container.DataItem %>' runat="server" />
                                            </li>
                                        </ItemTemplate>
                                    </asp:ListView>
                                    <asp:ObjectDataSource ID="odsMultiValueItems" runat="server" SelectMethod="GetMultiValueItemValues"
                                        TypeName="RCREEE.Library.DataManager">
                                        <SelectParameters>
                                            <asp:ControlParameter ControlID="ddlCountries" Name="CountryId" PropertyName="SelectedValue"
                                                Type="Int32" />
                                            <asp:ControlParameter ControlID="lblMultiValueItemEntityId" DefaultValue="" Name="EntityId"
                                                PropertyName="Text" Type="Int32" />
                                            <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                                        </SelectParameters>
                                    </asp:ObjectDataSource>
                                    <br />
                                </ItemTemplate>
                                <SeparatorTemplate>
                                    <hr />
                                </SeparatorTemplate>
                            </asp:Repeater>
                            <br />
                            <asp:ObjectDataSource ID="odsMultiItemValuesEntities" runat="server" SelectMethod="GetEntitiesByEntityTypeId"
                                TypeName="RCREEE.Library.DataManager">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="123" Name="EntityTypeId" Type="Int32" />
                                    <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </asp:Panel>
                        <br />
                        <table width="100%">
                            <tr>
                                <td>
                                    <a href='<%# "EnergyConsumptionDevelopment_ViewAll.aspx?C="+ ddlCountries.SelectedValue %>'
                                        target="_blank">Energy Consumption Development Items</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="gvEnergyItems" runat="server" CellPadding="4" EnableModelValidation="True"
                                        ForeColor="#333333" GridLines="None" OnRowCreated="gvEnergyItems_RowCreated"
                                        OnRowDataBound="gvEnergyItems_RowDataBound" meta:resourcekey="gvEnergyItemsResource1"
                                        Width="100%">
                                        <AlternatingRowStyle BackColor="White" HorizontalAlign="Center" />
                                        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" HorizontalAlign="Center" />
                                        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href='<%# "StrategicObjective_ViewAll.aspx?C="+ ddlCountries.SelectedValue %>'
                                        target="_blank">Strategic Objectives</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblStrategicRE" runat="server" Text="Renewable Energy" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="gvStrategicObjectives_RE" runat="server" CellPadding="4" EnableModelValidation="True"
                                        ForeColor="#333333" GridLines="None" EmptyDataText="No Data available for this language"
                                        Width="100%">
                                        <AlternatingRowStyle BackColor="White" HorizontalAlign="Left" />
                                        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" HorizontalAlign="Left" />
                                        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblStrategicEE" runat="server" Text="Energy Efficiency" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:GridView ID="gvStrategicObjectives_EE" runat="server" CellPadding="4" EnableModelValidation="True"
                                        ForeColor="#333333" GridLines="None" EmptyDataText="No Data available for this language"
                                        Width="100%">
                                        <AlternatingRowStyle BackColor="White" HorizontalAlign="Left" />
                                        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" HorizontalAlign="Left" />
                                        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="Label15" runat="server" Text="English name:" meta:resourcekey="Label15Resource1" />
                                </td>
                                <td class="style17">
                                    <asp:TextBox ID="txtEnglishName_Edit" runat="server" Text='<%# Bind("EnglishName") %>'
                                        meta:resourcekey="txtEnglishName_EditResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="vldMainEnglishName_Edit" runat="server" ControlToValidate="txtEnglishName_Edit"
                                        ErrorMessage="Country English Name">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <asp:Panel ID="pnlEnglishEdit" runat="server" GroupingText="English" meta:resourcekey="pnlEnglishEditResource1"
                            Width="100%">
                            <table width="100%">
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label34" runat="server" Text="Official Name:" meta:resourcekey="Label34Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtName_EnglishEdit" runat="server" Text='<%# Bind("EnglishCountryName") %>'
                                            meta:resourcekey="txtName_EnglishEditResource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldEnglishName_Edit" runat="server" ControlToValidate="txtName_EnglishEdit"
                                            ErrorMessage="English Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCapitalNameLabel" runat="server" Text="Capital:" meta:resourcekey="lblCapitalNameLabel_English" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtCapital_EnglishEdit" runat="server" Text='<%# Bind("EnglishCapital") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldCapital_Edit" runat="server" ControlToValidate="txtCapital_EnglishEdit"
                                            ErrorMessage="Capital Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblAreaLabel" runat="server" Text="Area:" meta:resourcekey="lblAreaLabel_English" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtArea_EnglishEdit" runat="server" Text='<%# Bind("EnglishArea") %>'></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label35" runat="server" Text="Renewable Energy Contribution Rate:"
                                            meta:resourcekey="Label35Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtREConRate_EnglishEdit" runat="server" Text='<%# Bind("EnglishRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="txtREConRate_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label36" runat="server" Text="Renewable Energy Contribution Rate Comment:"
                                            meta:resourcekey="Label36Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtREConRateComment_EnglishEdit" runat="server" Text='<%# Bind("EnglishRenewableEnergyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="txtREConRateComment_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label37" runat="server" Text="Energy Efficiency Contribution Rate:"
                                            meta:resourcekey="Label37Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtEEConRate_EnglishEdit" runat="server" Text='<%# Bind("EnglishEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="txtEEConRate_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label38" runat="server" Text="Energy Efficiency Contribution Rate Comment:"
                                            meta:resourcekey="Label38Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtEEConRateComment_EnglishEdit" runat="server" Text='<%# Bind("EnglishEnergyEfficiencyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="txtEEConRateComment_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label39" runat="server" Text="Currency:" meta:resourcekey="Label39Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtCurrency_EnglishEdit" runat="server" Text='<%# Bind("EnglishCurrency") %>'
                                            meta:resourcekey="txtCurrency_EnglishEditResource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldEnglishCurrency_Edit" runat="server" ControlToValidate="txtCurrency_EnglishEdit"
                                            ErrorMessage="English Currency">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <br />
                        <asp:Panel ID="pnlFrenchEdit" runat="server" GroupingText="Français" meta:resourcekey="pnlFrenchEditResource1"
                            Width="100%">
                            <table width="100%">
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label40" runat="server" Text="Nom Officiel:" meta:resourcekey="Label40Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFrenchName_Edit" runat="server" Text='<%# Bind("FrenchCountryName") %>'
                                            meta:resourcekey="TextBox1Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldFrenchName_Edit" runat="server" ControlToValidate="txtFrenchName_Edit"
                                            ErrorMessage="French Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCapitalNameLabel_French_Edit" runat="server" Text="" meta:resourcekey="lblCapitalNameLabel_French" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtCapital_FrenchEdit" runat="server" Text='<%# Bind("FrenchCapital") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldFrenchCapital_Edit" runat="server" ControlToValidate="txtCapital_FrenchEdit"
                                            ErrorMessage="Capital">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label71" runat="server" Text="" meta:resourcekey="lblAreaLabel_French" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtArea_FrenchEdit" runat="server" Text='<%# Bind("FrenchArea") %>'></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label41" runat="server" Text="Taux de cotisation de l'énergie renouvelable:"
                                            meta:resourcekey="Label41Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FrenchRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="TextBox2Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label42" runat="server" Text="Noter ce commentaire renouvelable de l'énergie de la contribution:"
                                            meta:resourcekey="Label42Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("FrenchRenewableEnergyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox3Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label43" runat="server" Text="Taux de cotisation pour l'efficacité énergétique:"
                                            meta:resourcekey="Label43Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("FrenchEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="TextBox4Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label44" runat="server" Text=" L'efficacité énergétique des taux de cotisation Commentaire:"
                                            meta:resourcekey="Label44Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("FrenchEnergyEfficiencyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox5Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label45" runat="server" Text="monnaie:" meta:resourcekey="Label45Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFrenchCurrency_Edit" runat="server" Text='<%# Bind("FrenchCurrency") %>'
                                            meta:resourcekey="TextBox6Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldFrenchCurrency_Edit" runat="server" ControlToValidate="txtFrenchCurrency_Edit"
                                            ErrorMessage="French Currency">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <br />
                        <asp:Panel ID="pnlArabicEdit" runat="server" GroupingText="عربي" Direction="RightToLeft"
                            meta:resourcekey="pnlArabicEditResource1" Width="100%">
                            <table dir="rtl" width="100%">
                                <tr>
                                    <td class="style20">
                                        :<asp:Label ID="Label46" runat="server" Text="الإسم الرسمى: " meta:resourcekey="Label46Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="txtArabicName_Edit" runat="server" Text='<%# Bind("ArabicCountryName") %>'
                                            meta:resourcekey="TextBox7Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldArabicName_Edit" runat="server" ControlToValidate="txtArabicName_Edit"
                                            ErrorMessage="Arabic Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label70" runat="server" Text="" meta:resourcekey="lblCapitalNameLabel_Arabic" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtCapital_ArabicEdit" runat="server" Text='<%# Bind("ArabicCapital") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldCapitalName_ArabicEdit" runat="server" ControlToValidate="txtCapital_ArabicEdit"
                                            ErrorMessage="العاصمة">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label72" runat="server" Text="" meta:resourcekey="lblAreaLabel_Arabic" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtArea_ArabicEdit" runat="server" Text='<%# Bind("ArabicArea") %>'></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label47" runat="server" Text="معدل المساهمة في الطاقة المتجددة:" meta:resourcekey="Label47Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("ArabicRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="TextBox8Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label48" runat="server" Text="ملاحظات على معدل المساهمة في الطاقة المتجددة:"
                                            meta:resourcekey="Label48Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("ArabicRenewableEnergyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox9Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label49" runat="server" Text="معدل المساهمة في كفاءة الطاقة:" meta:resourcekey="Label49Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("ArabicEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="TextBox10Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label50" runat="server" Text="ملاحظات على معدل المساهمة في كفاءة الطاقة:"
                                            meta:resourcekey="Label50Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("ArabicEnergyEfficiencyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox11Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label51" runat="server" Text="العملة:" meta:resourcekey="Label51Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="txtArabicCurrency_Edit" runat="server" Text='<%# Bind("ArabicCurrency") %>'
                                            meta:resourcekey="TextBox12Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldArabicCurrency_Edit" runat="server" ControlToValidate="txtArabicCurrency_Edit"
                                            ErrorMessage="Arabic Currency">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update" Text="Update"
                            meta:resourcekey="UpdateButtonResource1"></asp:LinkButton>
                        <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="Cancel" meta:resourcekey="UpdateCancelButtonResource1"></asp:LinkButton>
                        </asp:Panel>
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        <table width="100%">
                            <tr>
                                <td>
                                    <asp:Label ID="Label15" runat="server" Text="English name:" meta:resourcekey="Label15Resource2" />
                                </td>
                                <td class="style16">
                                    <asp:TextBox ID="txtEnglishName_Insert" runat="server" Text='<%# Bind("EnglishName") %>'
                                        meta:resourcekey="txtEnglishName_InsertResource1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="vldMainEnglishName_Insert" runat="server" ControlToValidate="txtEnglishName_Insert"
                                        ErrorMessage="Country English Name">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <asp:Panel ID="pnlEnglishEdit" runat="server" GroupingText="English" meta:resourcekey="pnlEnglishEditResource1"
                            Width="100%">
                            <table width="100%">
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label34" runat="server" Text="Official Name:" meta:resourcekey="Label34Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtName_EnglishEdit" runat="server" Text='<%# Bind("EnglishCountryName") %>'
                                            meta:resourcekey="txtName_EnglishEditResource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldEnglishName_Edit" runat="server" ControlToValidate="txtName_EnglishEdit"
                                            ErrorMessage="English Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCapitalNameLabel" runat="server" Text="Capital:" meta:resourcekey="lblCapitalNameLabel_English" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtCapital_EnglishEdit" runat="server" Text='<%# Bind("EnglishCapital") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldCapital_Edit" runat="server" ControlToValidate="txtCapital_EnglishEdit"
                                            ErrorMessage="Capital Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblAreaLabel" runat="server" Text="Area:" meta:resourcekey="lblAreaLabel_English" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtArea_EnglishEdit" runat="server" Text='<%# Bind("EnglishArea") %>'></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label35" runat="server" Text="Renewable Energy Contribution Rate:"
                                            meta:resourcekey="Label35Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtREConRate_EnglishEdit" runat="server" Text='<%# Bind("EnglishRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="txtREConRate_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label36" runat="server" Text="Renewable Energy Contribution Rate Comment:"
                                            meta:resourcekey="Label36Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtREConRateComment_EnglishEdit" runat="server" Text='<%# Bind("EnglishRenewableEnergyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="txtREConRateComment_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label37" runat="server" Text="Energy Efficiency Contribution Rate:"
                                            meta:resourcekey="Label37Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtEEConRate_EnglishEdit" runat="server" Text='<%# Bind("EnglishEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="txtEEConRate_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label38" runat="server" Text="Energy Efficiency Contribution Rate Comment:"
                                            meta:resourcekey="Label38Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtEEConRateComment_EnglishEdit" runat="server" Text='<%# Bind("EnglishEnergyEfficiencyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="txtEEConRateComment_EnglishEditResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label39" runat="server" Text="Currency:" meta:resourcekey="Label39Resource1" />
                                    </td>
                                    <td class="style7">
                                        <asp:TextBox ID="txtCurrency_EnglishEdit" runat="server" Text='<%# Bind("EnglishCurrency") %>'
                                            meta:resourcekey="txtCurrency_EnglishEditResource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldEnglishCurrency_Edit" runat="server" ControlToValidate="txtCurrency_EnglishEdit"
                                            ErrorMessage="English Currency">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <br />
                        <asp:Panel ID="pnlFrenchEdit" runat="server" GroupingText="Français" meta:resourcekey="pnlFrenchEditResource1"
                            Width="100%">
                            <table width="100%">
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label40" runat="server" Text="Nom Officiel:" meta:resourcekey="Label40Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFrenchName_Edit" runat="server" Text='<%# Bind("FrenchCountryName") %>'
                                            meta:resourcekey="TextBox1Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldFrenchName_Edit" runat="server" ControlToValidate="txtFrenchName_Edit"
                                            ErrorMessage="French Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCapitalNameLabel_French_Edit" runat="server" Text="" meta:resourcekey="lblCapitalNameLabel_French" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtCapital_FrenchEdit" runat="server" Text='<%# Bind("FrenchCapital") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldFrenchCapital_Edit" runat="server" ControlToValidate="txtCapital_FrenchEdit"
                                            ErrorMessage="Capital">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label71" runat="server" Text="" meta:resourcekey="lblAreaLabel_French" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtArea_FrenchEdit" runat="server" Text='<%# Bind("FrenchArea") %>'></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label41" runat="server" Text="Taux de cotisation de l'énergie renouvelable:"
                                            meta:resourcekey="Label41Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FrenchRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="TextBox2Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label42" runat="server" Text="Noter ce commentaire renouvelable de l'énergie de la contribution:"
                                            meta:resourcekey="Label42Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("FrenchRenewableEnergyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox3Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label43" runat="server" Text="Taux de cotisation pour l'efficacité énergétique:"
                                            meta:resourcekey="Label43Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("FrenchEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="TextBox4Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label44" runat="server" Text=" L'efficacité énergétique des taux de cotisation Commentaire:"
                                            meta:resourcekey="Label44Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("FrenchEnergyEfficiencyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox5Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style19">
                                        <asp:Label ID="Label45" runat="server" Text="monnaie:" meta:resourcekey="Label45Resource1" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtFrenchCurrency_Edit" runat="server" Text='<%# Bind("FrenchCurrency") %>'
                                            meta:resourcekey="TextBox6Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldFrenchCurrency_Edit" runat="server" ControlToValidate="txtFrenchCurrency_Edit"
                                            ErrorMessage="French Currency">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <br />
                        <asp:Panel ID="pnlArabicEdit" runat="server" GroupingText="عربي" Direction="RightToLeft"
                            meta:resourcekey="pnlArabicEditResource1" Width="100%">
                            <table dir="rtl" width="100%">
                                <tr>
                                    <td class="style20">
                                        :<asp:Label ID="Label46" runat="server" Text="الإسم الرسمى: " meta:resourcekey="Label46Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="txtArabicName_Edit" runat="server" Text='<%# Bind("ArabicCountryName") %>'
                                            meta:resourcekey="TextBox7Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldArabicName_Edit" runat="server" ControlToValidate="txtArabicName_Edit"
                                            ErrorMessage="Arabic Name">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label70" runat="server" Text="" meta:resourcekey="lblCapitalNameLabel_Arabic" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtCapital_ArabicEdit" runat="server" Text='<%# Bind("ArabicCapital") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldCapitalName_ArabicEdit" runat="server" ControlToValidate="txtCapital_ArabicEdit"
                                            ErrorMessage="العاصمة">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label72" runat="server" Text="" meta:resourcekey="lblAreaLabel_Arabic" />
                                    </td>
                                    <td class="style17">
                                        <asp:TextBox ID="txtArea_ArabicEdit" runat="server" Text='<%# Bind("ArabicArea") %>'></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label47" runat="server" Text="معدل المساهمة في الطاقة المتجددة:" meta:resourcekey="Label47Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("ArabicRenewableEnergyContributionRate") %>'
                                            meta:resourcekey="TextBox8Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label48" runat="server" Text="ملاحظات على معدل المساهمة في الطاقة المتجددة:"
                                            meta:resourcekey="Label48Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("ArabicRenewableEnergyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox9Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label49" runat="server" Text="معدل المساهمة في كفاءة الطاقة:" meta:resourcekey="Label49Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("ArabicEnergyEfficiencyContributionRate") %>'
                                            meta:resourcekey="TextBox10Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label50" runat="server" Text="ملاحظات على معدل المساهمة في كفاءة الطاقة:"
                                            meta:resourcekey="Label50Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("ArabicEnergyEfficiencyContributionRateComment") %>'
                                            TextMode="MultiLine" meta:resourcekey="TextBox11Resource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan='2'>
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style20">
                                        <asp:Label ID="Label51" runat="server" Text="العملة:" meta:resourcekey="Label51Resource1" />
                                    </td>
                                    <td class="style8">
                                        <asp:TextBox ID="txtArabicCurrency_Edit" runat="server" Text='<%# Bind("ArabicCurrency") %>'
                                            meta:resourcekey="TextBox12Resource1"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="vldArabicCurrency_Edit" runat="server" ControlToValidate="txtArabicCurrency_Edit"
                                            ErrorMessage="Arabic Currency">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert" Text="Insert"
                            meta:resourcekey="InsertButtonResource1"></asp:LinkButton>
                        <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="Cancel" meta:resourcekey="InsertCancelButtonResource1"></asp:LinkButton>
                    </InsertItemTemplate>
                    <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                </asp:FormView>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Please, provide valid data for the following:"
                    meta:resourcekey="ValidationSummary1Resource1" />
                <br />
                <asp:ObjectDataSource ID="odsCountries" runat="server" SelectMethod="GetOneCountryById"
                    TypeName="RCREEE.Library.Entities.GeorgeCountry" DataObjectTypeName="RCREEE.Library.Entities.GeorgeCountry"
                    UpdateMethod="UpdateCountry" InsertMethod="InsertCountry" DeleteMethod="DeleteCountry">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlCountries" Name="CountryId" PropertyName="SelectedValue"
                            Type="Int32" />
                        <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="HiddenButton" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>
